<!DOCTYPE html>
<html>
	<meta charset="utf-8">
	<title><?php echo $catename;?> - <?php echo siteInfo('sitename');?></title>
	<meta name="keywords" content="<?php echo siteInfo('keywords');?>">
	<meta name="description" content="<?php echo siteInfo('descript');?>">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="<?php echo U_RES;?>/lib/layui/css/layui.css">
	<link rel="stylesheet" href="<?php echo U_RES_APP;?>/css/main.css">
	<link rel="stylesheet" href="<?php echo U_RES_APP;?>/css/index.css">
	<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
	<!--[if lt IE 9]>
	  <script src="/res/lib/js/html5shiv-printshiv.min.js"></script>
	  <script src="/res/lib/js/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<style>

.cxuu_videolist{padding:5px;height: 1350px;}
.cxuu_videolist li{float:left;width:260px; height:260px;margin-top:10px;margin-left:13px;}
.cxuu_videolist li .video_img{float:left;width:260px; height:180px;}
.cxuu_videolist li .video_img img{width:260px; height:180px;}
.cxuu_videolist li .video_imgtitle{float:left;width:250px; height:60px;line-height:30px;font-size:16px;text-align:center;padding:5px;overflow:hidden;}
	</style>
<import file="block/common.html" name="nav"/>
<div class="layui-container">

<div class="layui-card">
	<div class="layui-card-body cxuu_top_info">
	    <div class="layui-col-xs7">
			<import file="block/common.html" name="cateurl"/>
		</div>
		<div class="layui-col-xs5 ">
			<import file="block/common.html" name="search"/>
		</div>
	</div>
</div>
	
<div id="cxuu_main">
    <div class="layui-row  layui-col-space10">
		<div class="layui-col-xs12">
			<div class="layui-card">
			<div class="layui-card-header cxuu_cate_title"><?php echo $catename;?></div>

				<div class="layui-card-body cxuu_videolist">
				<!---首页图片列表--->
				  <ul>
				<?php foreach($list as $key=>$vo){  ?>
					<?php for($i = 0; $i<22; $i++){?>
					<li>
					<div class="video_img"><a href="/video/<{$vo['id']}>" target="_blank"><img width=260 height=180 src="<?php echo $vo['img'];?>"></a></div>
					<div class="video_imgtitle"><a href="/video/<{$vo['id']}>" target="_blank"><?php echo MbStr($vo['title'],32);?></a></div>
					</li>
				<?php } } ?>

				</ul>
			</div>

		</div>
	</div>
	<?php CxuuPage($page,1);?>
</div>
</div>

<script src="<?php echo U_RES;?>/lib/layui/layui.js" charset="utf-8"></script>
<script>
layui.define(function(){
	var laypage = layui.laypage
	,layer = layui.layer
	,laypage = layui.laypage
	,element = layui.element;

	laypage.render({
    elem: 'laypage'
    ,count: '<{$page["rows"]}>'
	,limit: '<{$page["num"]}>'
	,groups: 10//'<{$page["pages"]}>'
    ,theme: '#1E9FFF'
	,curr: '<{$page["p"]}>' //获取起始页
  	//,hash: '/' //自定义hash值
	,prev: "上一页"
	,next: "下一页"
	,jump: function(obj, first){   
    if(!first){
		location.href = '<?php if(!empty($urlname)){echo urlList($urlname); }else{echo urlList($cid);} ?>/'+obj.curr;
    }
  }
  });
});



</script>
<import file="block/common.html" name="footer"/>
</body>
</html>